package training.project.app.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import training.project.app.service.UtilService;
@Service
@Transactional
public class UtilServiceImpl implements UtilService
	{
		@Override
		public String GetParam(String[] params,int number,int position)
			{
				String param = params[number].substring(position);
				return param;
			}
		@Override
		public Boolean IsTrue(String param)
		{
			if(param.startsWith("t"))
				return true;
			return false;
		}
		@Override
		public int BooleanToInt(Boolean bool)
			{
				if(bool)
					return 1;
				return 0;
			}
	}
